function figure_NBA()
    figure_CARE();
end

function figure_SLICE()
    load('nba2.mat','gp','minutes','reb','ast','stl');
    data=[minutes,ast,reb];
    grid on;
    maxcoord=max([minutes;reb]);
    mincoord=min([minutes;reb]);
    [x,y] = meshgrid(0:4000:4000);
    y=[0,0;700,700];
    %y=y-200;
    z = (0.157510*x-0.898574*y-8.273140)/0.409580;    
    surf(x,y,z,'FaceColor','yellow','FaceAlpha',0.3);
    hold on;
    z = (0.112557*x-0.121851*y+8.695694)/0.986146;
    surf(x,y,z,'FaceColor','blue','FaceAlpha',0.3);
    hold on;
    plot3(data(:,1),data(:,2),data(:,3),'r.');
    hold on;
end

function figure_CARE()
    load('nba2.mat','gp','minutes','reb','ast','stl');
    data=[minutes,ast,reb];
    grid on;
    [x,y] = meshgrid(0:4000:4000);
    y=[0,0;700,700];
    %y=y-200;
    z = (0.090645*x-0.976344*y-0.796832)/0.196303;    
    surf(x,y,z,'FaceColor','yellow','FaceAlpha',0.3);
    hold on;
    plot3(data(:,1),data(:,2),data(:,3),'r.');
    hold on;
end
